﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;

namespace Digitalmes.Model.MessageManage
{
    // 用户群组关系
    public class UserGroup : BasePoco
    {
        [Display(Name = "用户ID")]
        [Required(ErrorMessage = "用户ID不能为空")]
        public Guid? UserId { get; set; }


        public FrameworkUser User { get; set; }     

        [Display(Name = "群组ID")]
        [Required(ErrorMessage = "群组ID不能为空")]
        public Guid? GroupId { get; set; }

        public ChatGroup Group { get; set; }

        [Display(Name = "加入时间")]
        public DateTime JoinTime { get; set; }

        [Display(Name = "角色")]
        public GroupRole Role { get; set; }
    }
}
